import java.util.Date;
enum UserType{
    ADMIN,MANAGER,FRONT_DESK
}
public abstract class User {
    private String userId;
    private String username;
    private String password;
    private Date registerTime;
    private UserType userType;
    private String phone;
    public User(String userId, String username, String password, Date registerTime, UserType userType, String phone) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.registerTime = registerTime;
        this.userType = userType;
        this.phone = phone;
    }
    public String getPhone(){
        return phone;
    }
    public String getUserId() {
        return userId;
    }
    public Date getRegisterTime(){
        return registerTime;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String newUsername){
        this.username=newUsername;
    }
    public void setPassword(String newPassword) {
        this.password = newPassword;
    }
    public String getPassword(){
        return password;
    }
    public UserType getUserType() {
        return userType;
    }
    public void setPhone(String phone) {
        this.phone=phone;
    }
    public void setUserType(UserType userType){
        this.userType=userType;
    }
    public abstract void login();
    public abstract void logout();
    public abstract void managePassword();
}
